import type { RouteRecordRaw } from 'vue-router';

const routes: RouteRecordRaw[] = [
  {
    meta: {
      icon: 'eos-icons:system-group',
      order: 1,
      title: '系统管理',
    },
    name: 'System',
    path: '/system',
    children: [
      {
        name: 'Config',
        path: '/system/config',
        component: () => import('#/views/system/config/index.vue'),
        meta: {
          hideInMenu: true,
          icon: 'icon-park-twotone:setting-two',
          title: '参数配置',
        },
      },
      {
        name: 'Dict',
        path: '/system/dict',
        component: () => import('#/views/system/dict/index.vue'),
        meta: {
          // hideInMenu: true,
          icon: 'fluent-mdl2:dictionary',
          title: '字典管理',
        },
      },
      {
        name: 'Menu',
        path: '/system/menu',
        component: () => import('#/views/system/menu/index.vue'),
        meta: {
          // hideInMenu: true,
          icon: 'ic:sharp-menu',
          title: '菜单管理',
        },
      },
      {
        name: 'User',
        path: '/system/user',
        component: () => import('#/views/system/user/index.vue'),
        meta: {
          // hideInMenu: true,
          icon: 'ph:user-duotone',
          title: '用户管理',
        },
      },
      {
        name: 'Role',
        path: '/system/role',
        component: () => import('#/views/system/role/index.vue'),
        meta: {
          // hideInMenu: true,
          icon: 'eos-icons:role-binding-outlined',
          title: '角色管理',
        },
      },
      {
        name: 'Dept',
        path: '/system/dept',
        component: () => import('#/views/system/dept/index.vue'),
        meta: {
          // hideInMenu: true,
          icon: 'mingcute:department-line',
          title: '部门管理',
        },
      },
      {
        meta: {
          icon: 'eos-icons:system-group',
          order: 2,
          title: '监控管理',
        },
        name: 'Monitor',
        path: '/monitor',
        children: [
          {
            name: 'Operlog',
            path: '/monitor/operlog',
            component: () => import('#/views/monitor/operlog/index.vue'),
            meta: {
              // hideInMenu: true,
              icon: 'icon-park-twotone:setting-two',
              title: '操作日志',
            },
          },
        ],
      },
    ],
  },
];

export default routes;
